﻿<?php
header("Content-type: text/html; charset=utf-8"); 
require_once 'PhalApiClient.php';
class Api_Client extends PhalApi_Api {
	public function say() {
		$config = array(
		    'host' => 'http://dev.phalapi.com/demo',
		    'secrect' => '******'
		);

		$client = new PhalApiClient($config);
		$rs = $client->request('User.GetBaseInfo', array('userId' => 1));

		if ($client->getRet() == PhalApiClient::RET_OK) {
		    var_dump($rs);
		} else {
		    var_dump($client->getMsg());
		    var_dump($client->getUrl());
		}
	}
}
?>